package com.ljq.cksp.dao;

import com.ljq.cksp.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author:ljq
 * @Date:2019/12/8
 */
public interface UserDAO extends JpaRepository<User, Integer>{
    public User findByName(String name);

    public User findById(int id);

    public User findByEmail(String email);

    public User findByNameAndPassword(String name, String password);

    public User findByNameAndId(String name, int id);

    public List<User> findByNameLikeAndIdGreaterThanOrderByNameAsc(String name, int id);
}
